package gui;

/**
 * @author Adit Ramadhan
 */
public class About extends javax.swing.JFrame {

    public About() {
        initComponents();
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        panelUtama = new javax.swing.JPanel();
        labelJudul = new javax.swing.JLabel();
        labelPembuat = new javax.swing.JLabel();
        labelVersi = new javax.swing.JLabel();
        labelCopyright = new javax.swing.JLabel();
        labelPembuat1 = new javax.swing.JLabel();
        labelPembuat2 = new javax.swing.JLabel();
        labelNilaiVersi = new javax.swing.JLabel();
        scrollLisensi = new javax.swing.JScrollPane();
        textLisensi = new javax.swing.JTextArea();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("About SmartSPP");
        setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        setResizable(false);
        setUndecorated(true);
        addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                formMouseClicked(evt);
            }
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                formMouseReleased(evt);
            }
        });

        panelUtama.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 5, true));

        labelJudul.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
        labelJudul.setText("Smart SPP | Cara pintar untuk mengatur SPP");

        labelPembuat.setText("Pembuat:");

        labelVersi.setText("Versi:");

        labelCopyright.setText("Copyright (c) 2011 Adit Ramadhan dan Tofin Cassanova.");

        labelPembuat1.setText("- Adit Ramadhan");

        labelPembuat2.setText("- Tofin Cassanova");

        labelNilaiVersi.setText("1.0");

        textLisensi.setColumns(20);
        textLisensi.setEditable(false);
        textLisensi.setFont(new java.awt.Font("Tahoma", 0, 13)); // NOI18N
        textLisensi.setRows(5);
        textLisensi.setText("Smart SPP dan Smart SPP logo adalah merek dagang dari Adit Ramadhan dan Tofin\nCassanova. Smart SPP berlisensi GPLv2 sehingga anda boleh merubah, mendistribu-\nsikan program Smart SPP asalkan anda tidak menghilangkan copyright asli dari\nSmart SPP ini.\n\nNikmati cara pintar untuk mengatur SPP dengan SmartSPP. \nTerima Kasih^^");
        scrollLisensi.setViewportView(textLisensi);

        javax.swing.GroupLayout panelUtamaLayout = new javax.swing.GroupLayout(panelUtama);
        panelUtama.setLayout(panelUtamaLayout);
        panelUtamaLayout.setHorizontalGroup(
            panelUtamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 516, Short.MAX_VALUE)
            .addGroup(panelUtamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(panelUtamaLayout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(panelUtamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(labelJudul, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 496, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(panelUtamaLayout.createSequentialGroup()
                            .addGroup(panelUtamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(labelPembuat)
                                .addComponent(labelVersi))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(panelUtamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(labelPembuat2)
                                .addComponent(labelPembuat1)
                                .addComponent(labelNilaiVersi)))
                        .addComponent(labelCopyright)
                        .addComponent(scrollLisensi, javax.swing.GroupLayout.DEFAULT_SIZE, 496, Short.MAX_VALUE))
                    .addContainerGap()))
        );
        panelUtamaLayout.setVerticalGroup(
            panelUtamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 289, Short.MAX_VALUE)
            .addGroup(panelUtamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(panelUtamaLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(labelJudul)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(panelUtamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(labelPembuat)
                        .addComponent(labelPembuat1))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(labelPembuat2)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(panelUtamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(labelNilaiVersi)
                        .addComponent(labelVersi))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(labelCopyright)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(scrollLisensi, javax.swing.GroupLayout.DEFAULT_SIZE, 147, Short.MAX_VALUE)
                    .addContainerGap()))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addComponent(panelUtama, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(panelUtama, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-525)/2, (screenSize.height-300)/2, 525, 300);
    }// </editor-fold>//GEN-END:initComponents

    private void formMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_formMouseClicked
        this.dispose();
    }//GEN-LAST:event_formMouseClicked

    private void formMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_formMouseReleased
        this.dispose();
    }//GEN-LAST:event_formMouseReleased

    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new About().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel labelCopyright;
    private javax.swing.JLabel labelJudul;
    private javax.swing.JLabel labelNilaiVersi;
    private javax.swing.JLabel labelPembuat;
    private javax.swing.JLabel labelPembuat1;
    private javax.swing.JLabel labelPembuat2;
    private javax.swing.JLabel labelVersi;
    private javax.swing.JPanel panelUtama;
    private javax.swing.JScrollPane scrollLisensi;
    private javax.swing.JTextArea textLisensi;
    // End of variables declaration//GEN-END:variables
}
